﻿using UnityEngine;
using System.Collections;

public class PerkLabel : MonoBehaviour {
	void Start(){

		if (transform.parent.GetComponent<PerkBtn> ().bEmpty) {
			GetComponent<UILabel>().text = "Empty";
		}else{
            GetComponent<UILabel>().text = transform.parent.GetComponent<PerkBtn>().pPerkData.m_strName;
		}
		GetComponent<UILabel>().depth = transform.parent.GetComponent<UISprite> ().depth + 1;
	}

	void Update () {

	}	
}
